package com.victor.service;

import java.util.List;

import com.victor.entity.Advertisement;

public interface AdvertisementService {

	/**
	 * 查询列表
	 * 
	 * @return
	 */
	public List<Advertisement> getAll();

	/**
	 * 查详情询
	 * 
	 * @return
	 */
	public Advertisement findByid(int aid);

	/**
	 * 新建
	 * 
	 * @param advertisement
	 * @return
	 */
	public boolean insert(Advertisement advertisement);

	/**
	 * 修改
	 * 
	 * @param advertisement
	 * @return
	 */
	public boolean update(Advertisement advertisement);

	/**
	 * 批量删除
	 * 
	 * @param ids
	 * @return
	 */
	public boolean batchDelete(int[] ids);

	/**
	 * 查询列表(日期查询)
	 * 
	 * @param starttime
	 * @param endtime
	 * @return
	 */
	public List<Advertisement> getAdBySearch(String starttime, String endtime, String tiaojian);

}
